package com.itlaoqi.springcloud.controller;

import com.itlaoqi.springcloud.client.AService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class SampleController {
    @Resource
    private AService aService;
    @GetMapping("/b")
    @ResponseBody
    public String methodB(){
        String result = aService.methodA();
        result = result + "<br/>This is Method B";
        return result;
    }
}
